package cn.xfdzx.android.apps.shop.contract;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.LiveInfoBeen;
import cn.xfdzx.android.apps.shop.bean.LiveListBeen;
import io.reactivex.Flowable;


/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */

public interface LiveListContract {
    interface Model {
        Flowable<LiveListBeen> getLiveList(int page);

        Flowable<LiveListBeen> getLiveFocusList(int page);
    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void onLiveListSuccess(LiveListBeen bean);

        void onLiveFocusListSuccess(LiveListBeen bean);
        /**
         * 刷新完成
         */
        void finishRefresh();

        /**
         * 加载完成
         */
        void finishLoadMore();
    }

    interface Presenter {
        /**
         *
         */
        void getLiveList(boolean isRefresh, boolean isLoading,int page);
        /**
         * 关注列表
         */
        void getLiveFocusList(boolean isRefresh, boolean isLoading,int page);
    }
}
